<template>
    <div class="grade">
        <h2>最终成绩</h2>
        <ul>
            <li>分数: {{grade.score}}</li>
            <li>考试时间: {{grade.time}}</li>
            <li>答对: {{grade.correct}}</li>
            <li>答错: {{grade.wrong}}</li>
            <li>未答题数:{{num}}</li>
            <li></li>
            <li></li>
        </ul>
        <van-button plain type="success" @click="goHome">返回主页</van-button>
    </div>
</template>

<script setup lang="ts">
import commen from '../commen/index'//工具类 格式化时间
import { ref, watch} from 'vue'
import { useRoute, useRouter } from 'vue-router';
const $route = useRoute()
const $router = useRouter()

// 获取路径的参数
// 
let grade:any=$route.query.grade
grade=JSON.parse(grade)

let daan=$route.query.daan

let eid = $route.query.eid

let num = $route.query.nun


const goHome = () => {
    $router.push('/')
}

</script>

<style lang="less" scoped>
    .grade{
        padding: 20px;
        h2{font-size: 25px;margin-bottom: 20px;}
        ul{
            li{
                font-size: 22px;
                margin-bottom: 20px;

            }
        }
        button{
            margin-top: 20px;
        }
    }
</style>